package com.zx.mapper;

import com.zx.bean.Manager;
import com.zx.bean.Worker;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkerMapper {

    //添加员工
    public abstract int addWorker(Worker worker);
    //删除员工
    public abstract int delWorker(int id);
    //修改员工信息
    public abstract Worker updateWorker(int id);
    //查询单个员工信息
    public abstract Worker findOneWorker(int id);
    //查询全部员工信息
    public abstract List<Worker> findAllWorker();
}
